﻿<%@ page import="java.util.Date" %>
<%@ page import="studentinformationmanagementsystem.entity.Student" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
    <head>
		<%
			Integer id=0;
			String studentid="";
			String studentName="";
			String idnumber="";
			String sex="";
			Date birthdate=null;
			String classgrade="";
			String nation="";
			Date admissionDate=null;
			String phone="";
			String department="";
			String politicsstatus="";
			String photograph="";
			String homeaddress="";
			String majorid="";
			String mailbox="";
			String nativeplace="";
			String emergencycontact="";
			String emergencycontactphone="";
			String password="";
//				Student student1=(Student)request.getAttribute("studentinfo");从session域中获取
			Student student=(Student)request.getSession().getAttribute("studentinfo");
			if(student!=null){
				id=student.getStudid();
				studentName=student.getStudentname();
				studentid=student.getStudentid();
				sex=student.getSex();
				birthdate=student.getBirthdate();
				classgrade=student.getClassandgrade();
				idnumber=student.getIdnumber();
				nation=student.getNation();
				admissionDate=student.getAdmissionDate();
				phone=student.getPhone();
				department=student.getDepartment();
				mailbox=student.getMailbox();
				majorid=student.getMajor();
				nativeplace=student.getNativeplace();
				emergencycontact=student.getEmergencycontact();
				emergencycontactphone=student.getEmergencycontactphone();
				password=student.getPassword();
				politicsstatus=student.getPoliticsstatus();
				homeaddress=student.getHomeaddress();
				photograph=student.getPhotograph();
			}

		%>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
        <title>学生详细信息页面</title>
		
		<!-- Favicon -->
        <link rel="shortcut icon" href="assets/img/favicon.png">
	
		<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;0,600;0,700;1,400&display=swap">
		
		<!-- Bootstrap CSS -->
        <link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
		
		<!-- Fontawesome CSS -->
		<link rel="stylesheet" href="assets/plugins/fontawesome/css/fontawesome.min.css">
		<link rel="stylesheet" href="assets/plugins/fontawesome/css/all.min.css">

		<!-- Datatables CSS -->
		<link rel="stylesheet" href="assets/plugins/datatables/datatables.min.css">
		
		<!-- Main CSS -->
        <link rel="stylesheet" href="assets/css/style.css">
    </head>
    <body>
	
		<!-- Main Wrapper -->
        <div class="main-wrapper">

			<!--页面头部 -->
			<div class="header">

				<!-- Logo -->
				<div class="header-left">
					<a href="index.html" class="logo">
						<img src="assets/img/logo.png" alt="Logo">
					</a>
					<a href="index.html" class="logo logo-small">
						<img src="assets/img/logo-small.png" alt="Logo" width="30" height="30">
					</a>
				</div>
				<!-- /Logo -->

				<a href="javascript:void(0);" id="toggle_btn">
					<i class="fas fa-align-left"></i>
				</a>

				<!-- Search Bar -->
				<div class="top-nav-search">
					<form>
						<input type="text" class="form-control" placeholder="搜索">
						<button class="btn" type="submit"><i class="fas fa-search"></i></button>
					</form>
				</div>
				<!-- /Search Bar -->

				<!-- Mobile Menu Toggle -->
				<a class="mobile_btn" id="mobile_btn">
					<i class="fas fa-bars"></i>
				</a>
				<!-- /Mobile Menu Toggle -->

				<!-- Header Right Menu -->
				<ul class="nav user-menu">

					<!-- Notifications -->
					<li class="nav-item dropdown noti-dropdown">
						<a href="#" class="dropdown-toggle nav-link" data-toggle="dropdown">
							<i class="far fa-bell"></i> <span class="badge badge-pill">3</span>
						</a>
						<div class="dropdown-menu notifications">
							<div class="topnav-dropdown-header">
								<span class="notification-title">通知</span>
								<a href="javascript:void(0)" class="clear-noti"> 清除</a>
							</div>
							<div class="noti-content">
								<ul class="notification-list">
									<li class="notification-message">
										<a href="#">
											<div class="media">
												<span class="avatar avatar-sm">
													<img class="avatar-img rounded-circle" alt="User Image" src="assets/img/profiles/avatar-02.jpg">
												</span>
												<div class="media-body">
													<p class="noti-details"><span class="noti-title">Carlson Tech</span> has approved <span class="noti-title">your estimate</span></p>
													<p class="noti-time"><span class="notification-time">4 mins ago</span></p>
												</div>
											</div>
										</a>
									</li>
									<li class="notification-message">
										<a href="#">
											<div class="media">
												<span class="avatar avatar-sm">
													<img class="avatar-img rounded-circle" alt="User Image" src="assets/img/profiles/avatar-11.jpg">
												</span>
												<div class="media-body">
													<p class="noti-details"><span class="noti-title">International Software Inc</span> has sent you a invoice in the amount of <span class="noti-title">$218</span></p>
													<p class="noti-time"><span class="notification-time">6 mins ago</span></p>
												</div>
											</div>
										</a>
									</li>
									<li class="notification-message">
										<a href="#">
											<div class="media">
												<span class="avatar avatar-sm">
													<img class="avatar-img rounded-circle" alt="User Image" src="assets/img/profiles/avatar-17.jpg">
												</span>
												<div class="media-body">
													<p class="noti-details"><span class="noti-title">John Hendry</span> sent a cancellation request <span class="noti-title">Apple iPhone XR</span></p>
													<p class="noti-time"><span class="notification-time">8 mins ago</span></p>
												</div>
											</div>
										</a>
									</li>
									<li class="notification-message">
										<a href="#">
											<div class="media">
												<span class="avatar avatar-sm">
													<img class="avatar-img rounded-circle" alt="User Image" src="assets/img/profiles/avatar-13.jpg">
												</span>
												<div class="media-body">
													<p class="noti-details"><span class="noti-title">Mercury Software Inc</span> added a new product <span class="noti-title">Apple MacBook Pro</span></p>
													<p class="noti-time"><span class="notification-time">12 mins ago</span></p>
												</div>
											</div>
										</a>
									</li>
								</ul>
							</div>
							<div class="topnav-dropdown-footer">
								<a href="#">View all Notifications</a>
							</div>
						</div>
					</li>
					<!-- /Notifications -->

					<!-- User Menu -->
					<li class="nav-item dropdown has-arrow">
						<a href="#" class="dropdown-toggle nav-link" data-toggle="dropdown">
							<span class="user-img"><img class="rounded-circle" src="assets/img/profiles/avatar-01.jpg" width="31" alt="Ryan Taylor"></span>
						</a>
						<div class="dropdown-menu">
							<div class="user-header">
								<div class="avatar avatar-sm">
									<img src="assets/img/profiles/avatar-01.jpg" alt="User Image" class="avatar-img rounded-circle">
								</div>
								<div class="user-text">
									<h6>Ryan Taylor</h6>
									<p class="text-muted mb-0">Administrator</p>
								</div>
							</div>
							<a class="dropdown-item" href="profile.html">我的资料</a>
							<a class="dropdown-item" href="inbox.html">邮箱</a>
							<a class="dropdown-item" href="../log/login.html">注销</a>
						</div>
					</li>
					<!-- /User Menu -->

				</ul>
				<!-- /Header Right Menu -->

			</div>
			<!-- /Header -->

			<!-- Sidebar -->
			<div class="sidebar" id="sidebar">
				<div class="sidebar-inner slimscroll">
					<div id="sidebar-menu" class="sidebar-menu">
						<ul>
							<li class="menu-title">
								<span>主菜单</span>
							</li>
							<li >
								<a href="index.html"><i class="fas fa-th-large"></i> <span>首页</span></a>
							</li>
							<li class="submenu active">
								<a href="#"><i class="fas fa-user-graduate"></i> <span> 学生管理</span> <span class="menu-arrow"></span></a>
								<ul>
									<li><a href="students.jsp">查看所有学生</a></li>
<%--									<li><a href="student-details.jsp" class="active">查看学生详情</a></li>--%>
<%--									<li><a href="add-student.html">添加学生信息</a></li>--%>
<%--									<li><a href="edit-student.jsp">修改学生信息</a></li>--%>
								</ul>
							</li>
							<li class="submenu">
								<a href="#"><i class="fas fa-chalkboard-teacher"></i> <span> 教师管理</span> <span class="menu-arrow"></span></a>
								<ul>
									<li><a href="teachers.jsp">查看所有教师</a></li>
<%--									<li><a href="teacher-details.jsp">查看教师详情</a></li>--%>
<%--									<li><a href="add-teacher.html">添加教师信息</a></li>--%>
<%--									<li><a href="edit-teacher.jsp">修改教师信息</a></li>--%>
								</ul>
							</li>
<%--							<li class="submenu">--%>
<%--								<a href="#"><i class="fas fa-building"></i> <span> 院系管理</span> <span class="menu-arrow"></span></a>--%>
<%--								<ul>--%>
<%--									<li><a href="departments.html">查看所有院系</a></li>--%>
<%--									<li><a href="add-department.html">添加院系信息</a></li>--%>
<%--									<li><a href="edit-department.html">修改院系信息</a></li>--%>
<%--								</ul>--%>
<%--							</li>--%>
							<li class="submenu">
								<a href="#"><i class="fas fa-book-reader"></i> <span> 课程管理</span> <span class="menu-arrow"></span></a>
								<ul>
									<li><a href="subjects.jsp">查看所有课程</a></li>
<%--									<li><a href="add-subject.jsp">添加课程信息</a></li>--%>
<%--									<li><a href="edit-subject.jsp">修改课程信息</a></li>--%>
								</ul>
							</li>
<%--							<li class="submenu ">--%>
<%--								<a href="#"><i class="fas fa-user-graduate"></i> <span> 班级管理</span> <span class="menu-arrow"></span></a>--%>
<%--								<ul>--%>
<%--									<li><a href="clazz.html">查看所有班级</a></li>--%>
<%--									<li><a href="add-clazz.html">添加班级信息</a></li>--%>
<%--									<li><a href="edit-clazz.html">修改班级信息</a></li>--%>
<%--								</ul>--%>
<%--							</li>--%>
<%--							<li class="submenu">--%>
<%--								<a href="#"><i class="fas fa-building"></i> <span> 专业管理</span> <span class="menu-arrow"></span></a>--%>
<%--								<ul>--%>
<%--									<li><a href="major.html">查看所有专业</a></li>--%>
<%--									<li><a href="add-major.html">添加专业信息</a></li>--%>
<%--									<li><a href="edit-major.html">修改专业信息</a></li>--%>
<%--								</ul>--%>
<%--							</li>--%>
<%--							<li class="submenu ">--%>
<%--								<a href="#"><i class="fas fa-chalkboard-teacher"></i> <span> 选课管理</span> <span class="menu-arrow"></span></a>--%>
<%--								<ul>--%>
<%--									<li><a href="course.html" >查看所有选修课</a></li>--%>
<%--									<li><a href="add-course.html">添加选修课信息</a></li>--%>
<%--									<li><a href="edit-course.html">修改选修课信息</a></li>--%>
<%--								</ul>--%>
<%--							</li>--%>


							<li class="submenu ">
								<a href="#"><i class="fas fa-chalkboard-teacher"></i> <span>课程表管理</span> <span class="menu-arrow"></span></a>
								<ul>
									<li><a href="quall-class-schedule.jsp">查看课程表信息</a></li>
<%--									<li><a href="add-class-schedue.html">添加课程表信息</a></li>--%>
<%--									<li><a href="edit-class-schedule.html">修改课程表信息</a></li>--%>
								</ul>
							</li>

						</ul>
					</div>
				</div>
			</div>
			<!-- /Sidebar -->
			
			<!-- Page Wrapper -->
            <div class="page-wrapper">
                <div class="content container-fluid">
				
					<div class="page-header">
						<div class="row">
							<div class="col-sm-12">
								<h3 class="page-title">学生详细信息</h3>
								<ul class="breadcrumb">
									<li class="breadcrumb-item"><a href="students.jsp">学生列表</a></li>
									<li class="breadcrumb-item active">学生详情</li>
								</ul>
							</div>
						</div>
					</div>
					
					<div class="card">
						<div class="card-body">
							<div class="row">
								<div class="col-md-12">
									<div class="about-info">
										<h4>关于我</h4>
										
										<div class="media mt-3">
<%--											<img src="assets/img/user.jpg" class="mr-3" alt="...">--%>
											<img src="/studentinformationmanagementsystems/studentinformationmanagement/<%=photograph%>" class="mr-3" alt="...">
											<div class="media-body">
												<ul>
                                                    <li>
                                                        <span class="title-span">姓名 :</span>
                                                        <span class="info-span"><%=studentName%></span>
                                                    </li>
                                                    <li>
                                                        <span class="title-span">学号 :</span>
                                                        <span class="info-span"><%=studentid%></span>
                                                    </li>
                                                    <li>
                                                        <span class="title-span">身份证号 : </span>
                                                        <span class="info-span"><%=idnumber%></span>
                                                    </li>
                                                    <li>
                                                        <span class="title-span">性别 : </span>
                                                        <span class="info-span"><%=sex%></span>
                                                    </li>
                                                    <li>
                                                        <span class="title-span">出生日期 : </span>
                                                        <span class="info-span"><%=birthdate%></span>
                                                    </li>
                                                    <li>
                                                        <span class="title-span">班级 : </span>
                                                        <span class="info-span"><%=classgrade%></span>
                                                    </li>
													<li>
														<span class="title-span">民族 : </span>
														<span class="info-span"><%=nation%></span>
													</li>
													<li>
														<span class="title-span">入学时间 : </span>
														<span class="info-span"><%=admissionDate%></span>
													</li>
													<li>
														<span class="title-span">本人电话 : </span>
														<span class="info-span"><%=phone%></span>
													</li>
													<li>
														<span class="title-span">院系 : </span>
														<span class="info-span"><%=department%></span>
													</li>
													<li>
														<span class="title-span">政治面貌 : </span>
														<span class="info-span"><%=politicsstatus%></span>
													</li>
													<li>
														<span class="title-span">家庭住址 : </span>
														<span class="info-span"><%=homeaddress%></span>
													</li>
													<li>
														<span class="title-span">专业 : </span>
														<span class="info-span"><%=majorid%></span>
													</li>
													<li>
														<span class="title-span">邮箱 : </span>
														<span class="info-span"><%=mailbox%></span>
													</li>
													<li>
														<span class="title-span">籍贯 : </span>
														<span class="info-span"><%=nativeplace%></span>
													</li>
													<li>
														<span class="title-span">紧急联系人 : </span>
														<span class="info-span"><%=emergencycontact%></span>
													</li>
													<li>
														<span class="title-span">紧急联系人电话 : </span>
														<span class="info-span"><%=emergencycontactphone%></span>
													</li>
                                                </ul>
											</div>
										</div>

										<div class="row mt-3">
											<div class="col-md-12">
												<p>
													<h1>大家好呀，我们要一起努力噢</h1>
												</p>
											</div>                                            
										</div>
										
										<div class="row follow-sec">
                                            <div class="col-md-4 mb-3">
                                                <div class="blue-box">
                                                    <h3>高</h3>
                                                    <p>Followers</p>
                                                </div>
                                            </div>
                                            <div class="col-md-4 mb-3">
                                                <div class="blue-box">
                                                    <h3>富</h3>
                                                    <p>Following</p>
                                                </div>
                                            </div>
                                            <div class="col-md-4 mb-3">
                                                <div class="blue-box">
                                                    <h3>帅</h3>
                                                    <p>Friends</p>
                                                </div>
                                            </div>
										</div>
										
<!--										<div class="row mt-2">-->
<!--											<div class="col-md-12">-->
<!--												<h5>Permanent Address</h5>-->
<!--												<p>480, Estern Avenue, Courtage area, New York</p>-->
<!--											</div>                                            -->
<!--                                        </div>-->

<!--                                        <div class="row mt-2">-->
<!--											<div class="col-md-12">-->
<!--												<h5>Present Address</h5>-->
<!--												<p>480, Estern Avenue, Courtage area, New York</p>-->
<!--											</div>                                            -->
<!--                                        </div>-->
									</div>
								</div>								
							</div>

<!--							<div class="row mt-2">-->
<!--								<div class="col-md-12">-->
<!--									<div class="skill-info">-->
<!--										<h4>Skills</h4>-->
<!--										<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry, simply dummy text of the printing and typesetting industry</p>-->
<!--										-->
<!--										<ul>-->
<!--                                            <li>-->
<!--                                                <label>Lorem Ipsum is simply</label>-->
<!--                                                <div class="progress">-->
<!--                                                    <div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 75%"></div>-->
<!--                                                </div>-->
<!--                                            </li>-->

<!--                                            <li>-->
<!--                                                <label>Lorem Ipsum is simply</label>-->
<!--                                                <div class="progress">-->
<!--                                                    <div class="progress-bar progress-bar-striped progress-bar-animated bg-success" role="progressbar" aria-valuenow="69" aria-valuemin="0" aria-valuemax="100" style="width: 69%"></div>-->
<!--                                                </div>-->
<!--                                            </li>-->

<!--                                            <li>-->
<!--                                                <label>Lorem Ipsum is simply</label>-->
<!--                                                <div class="progress">-->
<!--                                                    <div class="progress-bar progress-bar-striped progress-bar-animated bg-info" role="progressbar" aria-valuenow="86" aria-valuemin="0" aria-valuemax="100" style="width: 86%"></div>-->
<!--                                                </div>-->
<!--                                            </li>-->

<!--                                            <li>-->
<!--                                                <label>Lorem Ipsum is simply</label>-->
<!--                                                <div class="progress">-->
<!--                                                    <div class="progress-bar progress-bar-striped progress-bar-animated bg-warning" role="progressbar" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100" style="width: 65%"></div>-->
<!--                                                </div>-->
<!--                                            </li>                                            -->
<!--										</ul>-->
<!--										-->
<!--										<div class="row mt-3">-->
<!--											<div class="col-md-12">-->
<!--												<h5>Education</h5>-->
<!--												<p class="mt-3">Secondary Schooling at xyz school of secondary education, Mumbai.</p>-->
<!--												<p>Higher Secondary Schooling at xyz school of higher secondary education, Mumbai.</p>-->
<!--												<p>Bachelor of Science at Abc College of Art and Science, Chennai.</p>-->
<!--												<p>Master of Science at Cdm College of Engineering and Technology, Pune.</p>-->
<!--											</div>                                            -->
<!--										</div>-->
<!--										-->
<!--										<div class="row mt-3">-->
<!--											<div class="col-md-12">-->
<!--												<h5>Certificates</h5>-->
<!--												<p class="mt-3">1st Prise in Running Competition.</p>-->
<!--												<p>Lorem Ipsum is simply dummy text.</p>-->
<!--												<p>Won overall star student in higher secondary education.</p>-->
<!--												<p>Lorem Ipsum is simply dummy text.</p>-->
<!--											</div>                                            -->
<!--                                        </div>-->
<!--									</div>-->
<!--								</div>-->
<!--							</div>-->

<!--							<div class="row mt-2">-->
<!--								<div class="col-md-12">-->
<!--									<div class="skill-info">-->
<!--										<h4>Settings</h4>-->

<!--										<form>-->
<!--											<div class="row mt-3">-->
<!--												<div class="col-12 col-sm-6">  -->
<!--													<div class="form-group">-->
<!--														<label>Username</label>-->
<!--														<input type="text" class="form-control">-->
<!--													</div>-->
<!--												</div>-->
<!--												<div class="col-12 col-sm-6">  -->
<!--													<div class="form-group">-->
<!--														<label>Current Password</label>-->
<!--														<input type="password" class="form-control">-->
<!--													</div>-->
<!--												</div>-->
<!--												<div class="col-12 col-sm-6">  -->
<!--													<div class="form-group">-->
<!--														<label>New Password</label>-->
<!--														<input type="password" class="form-control">-->
<!--													</div>-->
<!--												</div>-->
<!--												<div class="col-12">-->
<!--													<button type="submit" class="btn btn-primary">Submit</button>-->
<!--												</div>-->
<!--											</div>-->
<!--										</form>-->
<!--									</div>-->
<!--								</div>-->
<!--							</div>-->
						</div>
					</div>				
				</div>
				
				<!-- Footer -->
				<footer>
					<p>学生信息管理系统</p>
				</footer>
				<!-- /Footer -->
			</div>
			<!-- /Page Wrapper -->
		
        </div>
		<!-- /Main Wrapper -->
		
		<!-- jQuery -->
        <script src="assets/js/jquery-3.5.1.min.js"></script>
		
		<!-- Bootstrap Core JS -->
        <script src="assets/js/popper.min.js"></script>
        <script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
		
		<!-- Slimscroll JS -->
        <script src="assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		
		<!-- Custom JS -->
		<script  src="assets/js/script.js"></script>
		
    </body>
</html>